<template>
	<view class="">
		<u-picker :show="show" :columns="columns" keyName="label" @cancel="show = false" @confirm="confirm"></u-picker>
		<u-button @click="show = true">打开</u-button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show: true,
				columns: [
					[{
						label: '雪月夜',
						// 其他属性值
						id: 2021
						// ...
					}, {
						label: '冷夜雨',
						id: 804
					}]
				],
			}
		},
		methods: {
			confirm(e){
				console.log('confirm', e.value[0])
				this.show = false
			}
			
		}
	}
</script>
<style scoped lang="scss">

</style>